package com.fhz.kotlinmvvm.main

import com.fhz.kotlinmvvm.api.FengServiceApi
import com.fhz.kotlinmvvm.entity.Banner
import com.fhz.kotlinmvvm.entity.Goods
import com.fhz.kotlinmvvm.entity.ResponseApi
import javax.inject.Inject

/**
 * 时间:2023/9/12
 * @author Mr.Feng
 * 简述: TODO
 */

class MainRemoteDataSource @Inject constructor(val fengServiceApi:FengServiceApi){

   suspend fun getBanners(type:Int,page:Int,pageSize:Int) : ResponseApi<Banner>{
        return fengServiceApi.getBanners(type, page, pageSize)
    }

    suspend fun getGoodsList(page:Int,pageSize:Int) : ResponseApi<Goods> {
        return fengServiceApi.getGoodsList( page, pageSize)
    }
}